package cn.tedu.medicalmanagementsystem.user.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class UserUpdateParam {
    @ApiModelProperty(value = "用户ID",required = true)
    private Long userId;
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "真实姓名",required = true)
    private String realName;
    @Size(min = 11, max = 11, message = "手机号必须为11位")
    @ApiModelProperty(value = "电话",required = true)
    private String phone;
    @ApiModelProperty(value = "邮箱",required = true)
    private String email;
    @ApiModelProperty(value = "性别",required = true)
    private String gender;
    @ApiModelProperty(value = "生日",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;
    @ApiModelProperty(value = "头像",required = true)
    private String avatar;
    @ApiModelProperty(value = "身份证号码",required = true)
    private String idCard;
}
